package com.xinsoft.entity.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xinsoft.common.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 保养工单条目表
 * @TableName cus_upkeep_order_entry
 */
@Data
public class CusUpkeepOrderEntry extends BaseEntity implements Serializable {

    /**
     * 保养工单ID
     */
    private Integer upkeepId;

    /**
     * 保养条目ID
     */
    private Integer upkeepEntryId;

    /**
     * 保养项目
     */
    @TableField(exist = false)
    private String upkeepName;

    /**
     * 保养方法
     */
    @TableField(exist = false)
    private String upkeepMethod;

    /**
     * 保养工时
     */
    private Integer upkeepHour;

    /**
     * 工时费
     */
    private Double hourPrice;

    /**
     * 保养费总额
     */
    private Double totalPrice;

    /**
     * 单条保养结果1-正常 2-异常
     */
    private Integer detailResult;

    /**
     * 单条保养记录
     */
    private String detailDesc;

    /**
     * 重载一次，因为这是关系表，编辑的时候方便直接物理删除
     */
    @ApiModelProperty(value = "操作标志(0-正常，1-刪除)", notes = "")
    @TableField(fill = FieldFill.INSERT,updateStrategy = FieldStrategy.NOT_NULL)
    private Integer doDelete;


    private static final long serialVersionUID = 1L;
}